@colorWhite: #FFFFFF;
@colorBorder: #EBEBEB;
@colorBlue: #56CFE4;
@colorBlack: #000000;
@colorGray: #999999;
@bgColor: #F7F7F7;
@grayBtnBg: #DDDDDD;
@colorOrange: #FC950C;
@colorLightOrange: #fefce3;
@colorGreen: #23AF88;
@colorGrayTwo: #666666;
@colorRed: #FF3C48;
@colorOrange2:#D19C4D;
@fs12: .24rem;
@fs14: .28rem;
@fs16: .32rem;
@fs18: .36rem;
@fs20: .4rem;
@fs24: .48rem;
@fs30: .8rem;

body {
  overflow-x: hidden;
  width: 100% !important;
  -webkit-overflow-scrolling: touch;
}

/* 去除ios 按钮点击有灰色背景 */
button {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
}

button:active {
  opacity: 0.5;
}

.self-btn:active {
  opacity: 0.5;
}

.modal-open {
  position: fixed;
  width: 100%;
}

.base-radius(@radius:3px) {
  border-radius: @radius;
  -moz-border-radius: @radius;
}

.base-btn(@bg:@colorBlue,@color:@colorWhite,@size:0.28rem) {
  background: @bg;
  color: @color;
  font-size: @size;
  text-align: center;
  .base-radius();
  cursor: pointer;
}

input {
  outline: none;
  font-size: @fs14;
  border: 0 none;
  &::-webkit-input-placeholder {
    color: #ACACAC;
    font-size: @fs14;
  }
}

a {
  color: @colorBlue;
}

.f-gray {
  color: @colorGrayTwo;
}

.f-gray-l {
  color: @colorGray;
}

.f-blue {
  color: @colorBlue;
}

.f-red {
  color: @colorRed;
}

.f-orange {
  color: @colorOrange;
}

.fb {
  font-weight: bold;
}

.po-r,
.pr {
  position: relative;
}

.po-a {
  position: absolute;
}

/* ssx-----------*/

ul, li {
  list-style: none;
}

img {
  width: 100%;
}

.br {
  border-right: 1px solid #f1f1f1
}

.f24 {
  font-size: @fs12;
}

.f32 {
  font-size: @fs16;
}

.f40 {
  font-size: @fs20;
}

.clear {
  zoom: 1;
  overflow: hidden;
}

.clear:after {
  content: '';
  display: block;
  clear: both;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.flexBox {
  display: -webkit-flex; /* 新版本语法: Chrome 21+ */
  display: flex; /* 新版本语法: Opera 12.1, Firefox 22+ */
  //display: -webkit-box;   /* 老版本语法: Safari, iOS, Android browser, older WebKit browsers. */
  display: -moz-box; /* 老版本语法: Firefox (buggy) */
  display: -ms-flexbox; /* 混合版本语法: IE 10 */
  flex-wrap: wrap;
  align-items: center;
}

.flexBox.start {
  align-items: flex-start;
}

.flexBox.end {
  align-items: flex-end;
}

.flexBox.stretch {
  align-items: stretch;
}

.flex-1 {
  -webkit-flex: 1; /* Chrome */
  -ms-flex: 1; /* IE 10 */
  flex: 1; /* NEW, Spec - Opera 12.1, Firefox 20+ */
  -webkit-box-flex: 1; /* OLD - iOS 6-, Safari 3.1-6 */
  -moz-box-flex: 1;
}

.full-page {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.line-after, .line-before {
  position: relative;
  &:after {
    content: " ";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    border-top: 1px solid #EBEBEB;
    color: #EBEBEB;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
  }
}

.line-after {
  &:after {
    bottom: 0;
  }
}

.line-before {
  &:after {
    top: 0;
  }
}

.line-left {
  &:after {
    content: " ";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    bottom: 0;
    border-left: 1px solid #f1f1f1;
    color: #f1f1f1;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: scaleX(.5);
    transform: scaleX(.5);
  }
}

.sin-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.mul-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.submit-white-btn, .submit-blue-btn {
  height: 1rem;
  line-height: normal;
  text-align: center;
  border: none;
}

.submit-white-btn {
  background-color: white;
  color: @colorGrayTwo;
  font-size: @fs16;
  border-top: 1px solid #f1f1f1;
}

.submit-blue-btn {
  background-color: @colorBlue;
  color: white;
  font-size: @fs16;
  border-top: 1px solid @colorBlue;
}

//.fix-bottom {
//  position: absolute;
//  width: 100%;
//  bottom: 0rem;
//}

.txt-cen {
  text-align: center;
}

.right-pop-page {
  width: 6rem;
}


/* 红包tab */
.redPacketTab {
  /deep/ .vux-tab .vux-tab-item {
    margin: 0 .6rem;
    background: none;
    color: #666;
  }
  /deep/ .vux-tab .vux-tab-item.vux-tab-selected {
    color: @colorRed;
    border-bottom: 3px solid @colorRed;
  }

}

.commonBgGray, .commonBgGray2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.commonBgGray {
  background-color: @bgColor;
}

.commonBgGray2 {
  background-color: #f1f1f1;
}

.commonBgWhite {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: @colorWhite;
  z-index: -1;
}

.routerViewWrap {

  .commHeader,
  .wrapper,
  .routerWrapOne,
  .registerBox,
  .certificationBox,
  .routerWrapTwo {
    top: 1rem;
  }

  .purchaseReward,
  .settingBox,
  .afterSaleBox,
  .applicationBox {
    margin-top: 1rem;
  }
  .setCommonTop {
    padding-top: 1rem;
  }
  .trackingBox {
    top: 1rem;
    .trackingHeader {
      top: 1rem;
    }
  }
  .detail-page {
    padding-top: 1rem;
  }

}

::-webkit-scrollbar { /*滚动条整体样式*/
  width: 0; /*高宽分别对应横竖滚动条的尺寸*/
  height: 0;
}
@media (min-width: 720px) {
  .commHeader {
    width: 720px;
    left: 50% !important;
    margin-left: -360px;
    .tabBox {
      position: relative;
      top: -10px;
    }
  }

  .addressListPageBox,
  .personOrderPageBox,
  .bottomBar,
  .cartBox,
  .mescroll,
  .routerWrapOne,
  .routerWrapTwo {
    width: 720px;
    left: 50% !important;
    margin-left: -360px;
  }

  .addressListPageBox,
  .personOrderPageBox,
  .index-page {
    .mescroll {
      width: inherit;
      left: inherit;
      margin-left: inherit;
    }

  }

  .collectPageBox {
    .tabs {
      width: 720px;
      left: 50% !important;
      margin-left: -360px;
    }
    .mescroll {
      width: inherit;
      left: inherit;
      margin-left: inherit;
    }
  }
}

/* loading css*/
.loading-container{
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

@import "vux";
